﻿//写法思路来自biubiu影院，海阔视界，xpath筛选。
//项目魔改至github开源仓库https://github.com/Tangsan99999/TvJar中的XBiubiu.java文件，
//本文档为完整模板，实际情况可按规则写法删去不需要的。
{
    //规则名
    "title": "20220917",
    //作者
    "author": "20220917",
    //请求头UA,不填则默认okhttp/3.12.11，可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA
    //习惯查看手机源码写建议用手机版UA，习惯查看PC版源码写建议用电脑版UA
    "UserAgent":"PC_UA",
    //请求头Referer参数，如果只是播放页需要，填WebView即可引用播放页的链接作嗅探Referer参数。
    //一般很少用，留空或删除
    "Referer":"",
    //是否开启获取首页数据，0关闭，1开启
    "homeContent":"1",
    //分类链接起始页码,禁止负数和含小数点。
    "firstpage": "0",
    //分类链接,{cateId}是分类，{catePg}是页码,第一页没有页码的可以这样写 第二页链接[firstPage=第一页的链接]
    "class_url": "https://www.dandanzan10.top/{cateId}/{class}-{area}-{year}-{catePg}-{by}.html",
    //分类名，分类1&分类2&分类3
    "class_name": "电影",
    //分类名替换词，替换词1&替换词2&替换词3，替换词包含英文&的用两个中文＆＆代替，示例：＆＆id=0&＆＆id=1
    "class_value": "dianying",
    //筛选数据，json格式，参考xpath的筛选写法
    "filterdata":{"dianying": [
        {
          "key": "class",
          "name": "分类",
          "value": [
            {"n": "全部","v": ""},
            {"n": "剧情","v": "剧情"},
            {"n": "喜剧","v": "喜剧"},
            {"n": "动作","v": "动作"},
            {"n": "爱情","v": "爱情"},
            {"n": "科幻","v": "科幻"},
            {"n": "悬疑","v": "悬疑"},
            {"n": "惊悚","v": "惊悚"},
            {"n": "恐怖","v": "恐怖"},
            {"n": "犯罪","v": "犯罪"},
            {"n": "音乐","v": "音乐"},
            {"n": "歌舞","v": "歌舞"},
            {"n": "传记","v": "传记"},
            {"n": "历史","v": "历史"},
            {"n": "战争","v": "战争"},
            {"n": "西部","v": "西部"},
            {"n": "奇幻","v": "奇幻"},
            {"n": "冒险","v": "冒险"},
            {"n": "灾难","v": "灾难"},
            {"n": "武侠","v": "武侠"}       
            
          ]},
        {
          "key": "area",
          "name": "地区",
          "value": [
            {"n": "全部","v": ""},
            {"n": "大陆","v": "中国大陆"},
            {"n": "美国","v": "美国"},
            {"n": "香港","v": "香港"},
            {"n": "台湾","v": "台湾"},
            {"n": "日本","v": "日本"},
            {"n": "韩国","v": "韩国"},
            {"n": "英国","v": "英国"},
            {"n": "法国","v": "法国"},
            {"n": "德国","v": "德国"},
            {"n": "意大利","v": "意大利"},
            {"n": "西班牙","v": "西班牙"},
            {"n": "印度","v": "印度"},
            {"n": "泰国","v": "泰国"},
            {"n": "俄罗斯","v": "俄罗斯"},
            {"n": "加拿大","v": "加拿大"},
            {"n": "澳大利亚","v": "澳大利亚"},
            {"n": "爱尔兰","v": "爱尔兰"},
            {"n": "瑞典","v": "瑞典"},
            {"n": "巴西","v": "巴西"},
            {"n": "丹麦","v": "丹麦"}		  
          ]
        },
        {
          "key": "year",
          "name": "年份",
          "value": [
            {"n": "全部","v": ""},
            {"n": "2022","v": "2022"},
            {"n": "2021","v": "2021"},
            {"n": "2020","v": "2020"},
            {"n": "2019","v": "2019"},
            {"n": "2018","v": "2018"},
            {"n": "2017","v": "2017"},
            {"n": "2016","v": "2016"},
            {"n": "2015","v": "2015"},
            {"n": "2014","v": "2014"},
            {"n": "2013","v": "2013"},
            {"n": "2012","v": "2012"},
            {"n": "2011","v": "2011"},
            {"n": "2010","v": "2010"},
            {"n": "2009","v": "2009"},
            {"n": "2008","v": "2008"},
            {"n": "2007","v": "2007"},
            {"n": "2006","v": "2006"},
            {"n": "2005","v": "2005"},
            {"n": "2004","v": "2004"},
            {"n": "2003","v": "2003"},
            {"n": "2002","v": "2002"},
            {"n": "更早","v": "1__2001"}
          ]
        },
        {
          "key": "by",
          "name": "排序",
          "value": [
           {"n": "全部","v": ""},
            {"n": "时间","v": "newstime"},
            {"n": "人气","v": "onclick"},
            {"n": "评分","v": "rating"}
          ]
        }
      ]},
    //分类页面截取数据模式，0为json，1为普通网页。
    "cat_mode": "1",
    
    //分类json列表数组定位，最多支持3层，能力有限，不是所有页面都能支持
    "catjsonlist": "",
    //分类json片单图片
    "catjsonpic": "",
    //分类json片单标题
    "catjsonname": "",
    //分类json片单链接
    "catjsonid": "",
    //分类json片单副标题
    "catjsonstitle":"",
    
    //分类是否二次截取
    "cat_YN_twice": "1",
    //分类二次截取前
    "cat_twice_pre": "class=\"lists-content\"",
    //分类二次截取后
    "cat_twice_suf": "class=\"pagination",
    
    //分类数组截取前
    "cat_arr_pre": "<li",
    //分类数组截取后
    "cat_arr_suf": "/a>",
    //分类截取片单图片，截取前缀&&截取后缀
    "cat_pic": "src=\"&&\"",
    //分类截取片单标题，截取前缀&&截取后缀
    "cat_title": "alt=\"&&\"",
    //分类截取片单副标题，截取前缀&&截取后缀
    "cat_subtitle": "class=\"countrie\"&&</div",
    //分类截取片单链接，截取前缀&&截取后缀
    "cat_url": "href=\"&&\"",  
    //分类片单链接补前缀  
    "cat_prefix": "https://www.dandanzan10.top",
    //分类片单链接补后缀
    "cat_suffix": "",
    
    //搜索链接，搜索关键字用{wd}表示，post请求的最后面加;post
    //POST链接示例 http://www.lezhutv.com/index.php?m=vod-search;post
    "search_url": "https://www.dandanzan10.top/so/{wd}-{wd}--.html",
    //POST搜索body，填写搜索关键字的键值，一般常见的是searchword和wd，不是POST搜索的可留空或删除。
    "sea_PtBody":"",
    //搜索模式,0为json搜索，只支持列表在list数组里的，其它为网页截取。
    "search_mode": "1",
    
    //搜索json列表数组定位，不填默认内置list，最多支持3层，能力有限，不是所有页面都能支持。
    "jsonlist": "",
    //搜索json片单图片
    "jsonpic": "",
    //搜索json片单标题
    "jsonname": "",
    //搜索json片单链接
    "jsonid": "",
    //json片单副标题，这个很少有，预留着
    "jsonstitle":"",
    
    //搜索是否二次截取  
    "sea_YN_twice": "1",
    //搜索二次截取前
    "sea_twice_pre": "class=\"lists-content\"",
    //搜索二次截取后
    "sea_twice_suf": "class=\"pagination",
    
    //搜索数组前缀
    "sea_arr_pre": "<li",
    //搜索数组后缀
    "sea_arr_suf": "/a>",
    //搜索片单图片，截取前缀&&截取后缀
    "sea_pic": "src=\"&&\"",
    //搜索片单标题，截取前缀&&截取后缀
    "sea_title": "alt=\"&&\"",
    //搜索片单链接，截取前缀&&截取后缀
    "sea_url": "href=\"&&\"",
    //搜索片单链接补前缀
    "search_prefix": "https://www.dandanzan10.top",
    //搜索片单链接补后缀，这个一般json搜索的需要
    "search_suffix": "",
    //搜索副标题，截取前缀&&截取后缀
    "sea_subtitle": "class=\"countrie\"&&</div",
    
    //片单链接是否直接播放，0否，1分类片单链接直接播放，2详情选集链接直接播放。
    //设置成直接播放后，后面3个参数请注意该留空的请务必留空。
    "force_play": "1",
    //直接播放链接补前缀
    "play_prefix": "",
    //直接播放链接补后缀，设置为#isVideo=true#可强制识别为视频链接
    "play_suffix": "",
    //直接播放链接设置请求头，只对直链视频有效，每一组用#分开
    "play_header": ""
    
}